﻿using System;
using System.Collections.Generic;

namespace TCKQKL.FrontEnd.DataModel
{
    public sealed class HoldingDataUI
    {
        private QuoteDataUI _quote;
        private List<MatchResultUI> _tradingResult;
        private AccountDataUI _account;
        private decimal _averageBought;
        private decimal _gain;
        private decimal _totalValue;

        public HoldingDataUI()
        {
        }
        public HoldingDataUI(QuoteDataUI quote, List<MatchResultUI> tR, AccountDataUI account, decimal gain, decimal totalValue)
        {
            this._quote = Quotes;
            this._account = Account;
            this._tradingResult = tR;
            this._gain = gain;
            this._totalValue = totalValue;
        }

        public TCKQKL.FrontEnd.DataModel.QuoteDataUI Quotes
        {
            get { return _quote; }
            set { _quote = value; }
        }
        public TCKQKL.FrontEnd.DataModel.AccountDataUI Account
        {
            get { return _account; }
            set { _account = value; }
        }
        public List<MatchResultUI> tradingResult
        {
            get { return _tradingResult; }
            set { _tradingResult = value; }
        }
        public decimal Gain
        {
            get { return _gain; }
            set { _gain = value; }
        }
        public decimal TotalValue
        {
            get { return _totalValue; }
            set { _totalValue = value; }
        }
        public decimal AverageBought
        {
            get { return _averageBought; }
            set { _averageBought = value; }
        }

    }
}
